Allow tools to map arbitrarily large machphys_mfn_list on 32bit dom0
authorGianni Tedesco <gianni.tedesco@citrix.com>
Mon, 14 Mar 2011 17:13:15 +0000 (17:13 +0000)
committerGianni Tedesco <gianni.tedesco@citrix.com>
Mon, 14 Mar 2011 17:13:15 +0000 (17:13 +0000)
commit342392ddbe4f8910979472d9dfcdb76c78f0ea51
treedd85fe81b875a73c740aaba89523a301c2c25004
parent37916ccd3a54b9e2899e4c0ea941e1d8b1ccd5c2
Allow tools to map arbitrarily large machphys_mfn_list on 32bit dom0

This permits suspend/resume to work with 32bit dom0/tools when system
memory extends beyond 160GB (and up to 1TB).

AFAICT the limit to MACH2PHYS_COMPAT_NR_ENTRIES is redundant since
that refers to a limit in 32bit guest compat mappings under 64bit
hypervisors, not userspace where there may be gigabytes of useful
virtual space available for this.

Suggested-by: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
xen/arch/x86/x86_64/compat/mm.c